using System;
using System.Collections.Generic;

namespace ConsoleApplication2.Models
{
    public partial class PSPayment
    {
        public PSPayment()
        {
            this.Invoicespayments = new List<Invoicespayment>();
            this.Payments = new List<Payment>();
            this.Refunds = new List<Refund>();
        }

        public int ID { get; set; }
        public Nullable<double> PSID { get; set; }
        public double AMOUNT { get; set; }
        public short CURRENCY { get; set; }
        public byte PAYTYPE { get; set; }
        public string PAYNUMBER { get; set; }
        public Nullable<byte> CCTYPE { get; set; }
        public string CCEXPDATE { get; set; }
        public string CASHACCT { get; set; }
        public string File_Primary_Key { get; set; }
        public string CUSTID { get; set; }
        public System.DateTime PAYDATE { get; set; }
        public byte STATUS { get; set; }
        public Nullable<int> DOC_REF { get; set; }
        public short RegisterID { get; set; }
        public bool Posted { get; set; }
        public Nullable<short> SiteID { get; set; }
        public short StoreID { get; set; }
        public Nullable<System.DateTime> timestmp { get; set; }
        public bool Closedout { get; set; }
        public Nullable<short> salesman { get; set; }
        public string vglbatch { get; set; }
        public string vendid { get; set; }
        public string origin { get; set; }
        public Nullable<double> ipid { get; set; }
        public string CCNAME { get; set; }
        public Nullable<double> OEID { get; set; }
        public string PVRV { get; set; }
        public Nullable<bool> Closed { get; set; }
        public string Note1 { get; set; }
        public string Note2 { get; set; }
        public int PaId { get; set; }
        public byte hasdetailed { get; set; }
        public Nullable<System.DateTime> DueDate { get; set; }
        public Nullable<int> Userid { get; set; }
        public short cstctrid { get; set; }
        public string DBCRACCT { get; set; }
        public Nullable<int> TrtPlan { get; set; }
        public Nullable<double> RateB1 { get; set; }
        public Nullable<double> RateB2 { get; set; }
        public Nullable<decimal> Base1Value { get; set; }
        public Nullable<decimal> Base2Value { get; set; }
        public Nullable<decimal> DiscountAmount { get; set; }
        public Nullable<double> DiscountPerc { get; set; }
        public Nullable<short> DiscountType { get; set; }
        public string OldPVRV { get; set; }
        public string PSP_Physician { get; set; }
        public string PSP_VoucherPrefix { get; set; }
        public virtual Acct Acct { get; set; }
        public virtual currency currency1 { get; set; }
        public virtual Cust Cust { get; set; }
        public virtual ICollection<Invoicespayment> Invoicespayments { get; set; }
        public virtual ICollection<Payment> Payments { get; set; }
        public virtual P P { get; set; }
        public virtual Register Register { get; set; }
        public virtual Store Store { get; set; }
        public virtual ICollection<Refund> Refunds { get; set; }
    }
}
